package CreateNewItem;

/**
 * Created with IntelliJ IDEA.
 * User: Jason
 * Date: 6/17/13
 * Time: 5:26 PM
 * To change this template use File | Settings | File Templates.
 */
public class ItemVariables {
    //GENERAL USED VARIABLES FOR ITEMS

    String	SUPP=null;
    String	CAPA=null;
    String	PARTLINK=null;
    String	ITEM_NO=null;
    String	PART_NO=null;
    String	BRAND=null;
    String	MODEL=null;
    String	CATALOG=null;
    String	DESCRIPT=null;
    String	R_COST=null; // cif
    String  COST=null;
    String	WH_SALE=null;
    String	RETAIL=null;
    String	QOH=null;
    String  CONTROL=null;
    String  LI_WARE=null;
    String	POSITION=null;
    String	NEW_DES=null;
    String	NEW_MOD=null;
    String	YR_L=null;
    String	YR_H=null;
    String  REMARK=null;

    //Temp defore determine Which Vendor to assign price to
    String  FOB;
    String CIF;

    // following for MOD_KEY
    String m_key=null;
    String mod_one=null;

    
    /*Vendors*/
    
    //TYG_TW
    String	TYG_TW_NO=null;
    String	TYG_TW_PRC=null;
    String	TYG_TW_PKG=null;
    String	TYG_TW_CUFT=null;
    String	TYG_TW_REMARK=null;
//    String	TYG_TW_NW;
//    String	TYG_TW_BKODR;

    //TYG TX
    String	TYG_TX_NO=null;
    String	TYG_TX_PRC=null;
    String  TYG_TX_PKG=null;
    String  TYG_TX_CUFT=null;
    String	TYG_TX_REMARK=null;

    //GD    (AP)
    String	GD_NO=null;
    String	GD_PRC=null;
    String	GD_PKG=null;
    String	GD_CUFT=null;
    String	GD_REMARK=null;
//    String	GD_NW;
//    String	GD_BKODR;

    //PROTECT  (YCC)
    String	PROTEC_NO=null;
    String	PROTEC_PRC=null;
    String	PROTEC_PKG=null;
    String	PROTEC_CUFT=null;
    String	PROTEC_REMARK=null;


    //GENERA
    String	GN_NO=null;
    String	GN_PRC=null;
    String  GN_PKG=null;
    String  GN_CUFT=null;
    String	GN_REMARK=null;

    //KOOL VIEW
    String	KV_NO=null;
    String	KV_PRC=null;
    String  KV_PKG=null;
    String  KV_CUFT=null;
    String	KV_REMARK=null;

    //DEPO
    String	DEPO_NO=null;
    String	DEPO_PRC=null;
    String  DEPO_PKG=null;
    String  DEPO_CUFT=null;
    String	DEPO_REMARK=null;




    /* BACKUP

        //GENERAL USED VARIABLES FOR ITEMS

    String	SUPP=" ";
    String	CAPA=" ";
    String	PARTLINK=" ";
    String	ITEM_NO=" ";
    String	PART_NO=" ";
    String	BRAND=" ";
    String	MODEL=" ";
    String	CATALOG=" ";
    String	DESCRIPT=" ";
    String	R_COST=" "; // cif
    String  COST=" ";
    String	WH_SALE=" ";
    String	RETAIL=" ";
    String	QOH=null;
    String  CONTROL=" ";
    String  LI_WARE=" ";
    String	POSITION=" ";
    String	NEW_DES=" ";
    String	NEW_MOD=" ";
    String	YR_L=" ";
    String	YR_H=" ";
    String  REMARK=" ";

    //Temp defore determine Which Vendor to assign price to
    String  FOB;
    String CIF;




    //TYG_TW
    String	TYG_TW_NO=" ";
    String	TYG_TW_PRC=" ";
    String	TYG_TW_PKG=" ";
    String	TYG_TW_CUFT=" ";
    String	TYG_TW_REMARK=" ";
//    String	TYG_TW_NW;
//    String	TYG_TW_BKODR;

    //TYG TX
    String	TYG_TX_NO=" ";
    String	TYG_TX_PRC=" ";
    String  TYG_TX_PKG=" ";
    String	TYG_TX_REMARK=" ";

    //GD    (AP)
    String	GD_NO=" ";
    String	GD_PRC=" ";
    String	GD_PKG=" ";
    String	GD_CUFT=" ";
    String	GD_REMARK=" ";
//    String	GD_NW;
//    String	GD_BKODR;

    //PROTECT  (YCC)
    String	PROTEC_NO=" ";
    String	PROTEC_PRC=" ";
    String	PROTEC_PKG=" ";
    String	PROTEC_CUFT=" ";
    String	PROTEC_REMARK=" ";


    //GENERA
    String	GN_NO=" ";
    String	GN_PRC=" ";
    String  GN_PKG=" ";
    String	GN_REMARK=" ";

    //KOOL VIEW
    String	KV_NO=" ";
    String	KV_PRC=" ";
    String  KV_PKG=" ";
    String	KV_REMARK=" ";

    //DEPO
    String	DEPO_NO=" ";
    String	DEPO_PRC=" ";
    String  DEPO_PKG=" ";
    String	DEPO_REMARK=" ";

     */

    /* THESE FIELD ARE NOT IN USE
    //    String	QOH;
    String	SALE2005;
    String	SALE2006;
    String	DNK_NOTE2;
    //    String	POSITION;
    String	DNK_NOTE1;
    String	SHP;
    String	CONTAINER;
    String	ON_ORDER;
    String	ORD_UNFILL;
    String	UNF_INFO;
    //    String	CTN1;
//    String	SHP1;
//    String	CTN2;
//    String	SHP2;
//    String	CTN3;
//    String	SHP3;
    String	SALE2007;
    */

    /*
    //TBLNU
    String	ITEM_NO=" ";
    String	PART_NO=" ";
    String	BRAND;
    String	MODEL;
    String	CATALOG;
    String	DESCRIPT;
    String	R_COST; // cif
    String	COST;       //not used
    String	WH_SALE;
    String	RETAIL;
    String	QOH=null;
    String	SHIPPING=null;    //not used
    String	DATE;             //not used
    String	CONTROL;          //not used
    String	LOCATION;         //not used
    String	LI_DAM;           //not used
    String	LI_WARE;          //not used
    String	POSITION;
    String	CHECKED;          //not used
    String	BK_DAM;           //not used
    String	REORDER;          //not used
    String	NEW_DES;
    String	NEW_MOD;
    String	YR_L;
    String	YR_H;
    String	NEW_PRC=" ";          //not used
    String	BROOKLYN;         //not used
    String	REMARK=" ";           //Today's Date
    String	CTN1;             //not used
    String	SHP1;             //not used
    String	CTN2;             //not used
    String	SHP2;             //not used
    String	CTN3;             //not used
    String	SHP3;             //not used
    String	BK_LOC;           //not used
    */
    public String getYrto(String l, String h ){
        String yrh = h.substring(Math.max(h.length() - 2, 0));
        String yrl = l.substring(Math.max(l.length() - 2, 0));
        String yearRange =yrl+"-"+yrh;
        return yearRange;
    }
}

